import * as http from '@/utils/http'

// 抽奖列表
export const getDrawPrizeList = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/getPrizeList',load:true })

// 抽奖详情
export const getDrawDetails = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/getPrizeDetails',load:true })

// 参与抽奖
export const partakeDraw = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/createPartake',load:true })

// 抽奖用户列表
export const getDrawUserList = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/partakeUserList2',load:true })

// 用户抽奖码列表
export const getDrawCodeList = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/partakeCodeList',load:true })

// 我参与的抽奖列表
export const getMyPartakeDrawList = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/getMyPartakeDrawList',load:true })

// 领取抽奖奖品
export const receiveDraw = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/createPrizeReceive',load:true })

// 抽奖奖品领取信息
export const getDrawReceiveInfo = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/getPrizeReceive',load:true })

// 抽奖奖品领取记录
export const getDrawReceiveList = (params = {}) => http.requset(params, { method: 'get', url: '/play/draw/getMyReceiveList',load:true })


